

#ifndef _SHELL_RESTEAMINFO_MESSAGE_H_
#define _SHELL_RESTEAMINFO_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include <vector>
//#include "TeamPlayer.h"
using namespace std;

class ResTeamInfoMessage : public Message
{
	public:
	ResTeamInfoMessage();
	~ResTeamInfoMessage();
	void reset();
	ResTeamInfoMessage* clone();
	static const int _ID;
	//队伍id
	int64 teamId;
	//队长id
	int64 captainId;
	//队伍等级
	int8 level;
	//距离下次升级还需多少秒
	int32 nextLevelTime;
	//队伍成员简易信息
	vector<TeamPlayer*> teamPlayers;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
